Skip to content

feat: adds (no-)ignore-vsc-exclude #1652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AckslD
Copy link

@AckslD AckslD commented Dec 26, 2024

closes #1612

Let me know if this looks okay, if so I can add tests and update the docs.

@AckslD AckslD force-pushed the no-ignore-vsc-exclude branch from e59ab54 to 08c42d7 Compare December 26, 2024 12:24
Copy link
Collaborator

@tmccombs tmccombs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me.

But before merging it should have some tests and a changelog entry, and update the manpage.

@@ -78,6 +78,22 @@ pub struct Opts {
#[arg(long, overrides_with = "no_ignore_vcs", hide = true, action = ArgAction::SetTrue)]
ignore_vcs: (),

///Show search results from files and directories that
///would otherwise be ignored by '.git/info/exclude'.
///Git ignore files are still respected unless --no-ignore-vsc is given.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
///Git ignore files are still respected unless --no-ignore-vsc is given.
///Git ignore files are still respected unless --no-ignore-vcs is given.

@@ -78,6 +78,22 @@ pub struct Opts {
#[arg(long, overrides_with = "no_ignore_vcs", hide = true, action = ArgAction::SetTrue)]
ignore_vcs: (),

///Show search results from files and directories that
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Add space between the final "/" and thext of the comment

help = "Do not respect .git/info/exclude",
long_help
)]
pub no_ignore_vcs_exclude: bool,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call this "no_ignore_exclude" to match the name ripgrep uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only ignore .git/info/exclude
2 participants